package com.itheima.day10;

import java.io.FileWriter;
import java.io.IOException;
import java.util.Scanner;

public class zuoye1 {
    public static void main(String[] args) throws IOException {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入你的用户名");
        String yonghu = sc.next();
        System.out.println("请输入你的密码");
        String mima = sc.next();
        FileWriter fw = new FileWriter("C:\\Users\\Administrator\\Desktop\\misa.txt");
        fw.write(yonghu);
        fw.write("\r\n");
        fw.write(mima);
        fw.close();
    }
}
